<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NeuZephyr: nz::cuStrm Namespace Reference</title>
<link rel="icon" href="NZ_logo2.png" type="image/x-icon" />
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="NZ_logo2.png"/></td>
  <td id="projectalign">
   <div id="projectname">NeuZephyr
   </div>
   <div id="projectbrief">Simple DL Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>nz</b></li><li class="navelem"><a class="el" href="namespacenz_1_1cu_strm.html">cuStrm</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a>  </div>
  <div class="headertitle"><div class="title">nz::cuStrm Namespace Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Provides core components for CUDA stream and event lifecycle management in GPU computing environments.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnz_1_1cu_strm_1_1_event_pool.html">EventPool</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal event management system for CUDA stream synchronization (Part of <a class="el" href="classnz_1_1cu_strm_1_1_stream_manager.html" title="Centralized CUDA stream and resource management system with automatic dependency tracking.">StreamManager</a>)  <a href="classnz_1_1cu_strm_1_1_event_pool.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnz_1_1cu_strm_1_1_stream_manager.html">StreamManager</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Centralized CUDA stream and resource management system with automatic dependency tracking.  <a href="classnz_1_1cu_strm_1_1_stream_manager.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides core components for CUDA stream and event lifecycle management in GPU computing environments. </p>
<p>The <code><a class="el" href="namespacenz_1_1cu_strm.html" title="Provides core components for CUDA stream and event lifecycle management in GPU computing environments...">nz::cuStrm</a></code> namespace implements advanced stream resource management and operation scheduling mechanisms for CUDA-enabled devices. It serves as the central coordination layer for GPU operation execution and synchronization in the nz project.</p>
<p>Key components within this namespace include:</p><ul>
<li><b><a class="el" href="classnz_1_1cu_strm_1_1_stream_manager.html" title="Centralized CUDA stream and resource management system with automatic dependency tracking.">StreamManager</a></b>: Central controller class that:<ul>
<li>Hosts all CUDA kernel executions through managed streams</li>
<li>Implements intelligent stream allocation policies (Round-Robin, Priority-based, etc.)</li>
<li>Maintains operation dependency graphs through event tracking</li>
<li>Provides automatic synchronization primitives</li>
</ul>
</li>
<li><b><a class="el" href="classnz_1_1cu_strm_1_1_event_pool.html" title="Internal event management system for CUDA stream synchronization (Part of StreamManager)">EventPool</a></b>: Internal event management system (see <a class="el" href="_event_pool_8cuh.html" title="Definition of the EventPool class for managing CUDA events in multi-stream environments.">EventPool.cuh</a> documentation)</li>
</ul>
<p>The architecture is designed to:</p><ul>
<li>Guarantee CUDA stream usage safety in multi-threaded environments</li>
<li>Prevent resource contention through stream/event ownership management</li>
<li>Enable fine-grained operation sequencing via dependency tracking</li>
</ul>
<dl class="section note"><dt>Note</dt><dd><ol type="1">
<li>All CUDA operations should be dispatched through <a class="el" href="classnz_1_1cu_strm_1_1_stream_manager.html" title="Centralized CUDA stream and resource management system with automatic dependency tracking.">StreamManager</a> interfaces</li>
<li>Manual stream creation/destruction is strictly prohibited in this paradigm</li>
<li>Event synchronization must use the provided abstraction layers</li>
</ol>
</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>Direct CUDA stream/event API calls outside this namespace may cause:<ul>
<li>Undefined synchronization behavior</li>
<li>Resource ownership conflicts</li>
<li>Memory consistency issues</li>
</ul>
</dd></dl>
<dl class="section author"><dt>Author</dt><dd>Mgepahmge(<a href="https://github.com/Mgepahmge">https://github.com/Mgepahmge</a>)</dd></dl>
<dl class="section date"><dt>Date</dt><dd>2024/11/29 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
